package com.czk.model.facade;

/**
 * 饿汉式单例
 */
public class DvdPlayer {
    private DvdPlayer(){};
    public static final DvdPlayer player=new DvdPlayer();
    public static DvdPlayer getInstance(){
        return player;
    }
    //
    public void on(){
        System.out.println("dvd on");
    }
    public void off(){
        System.out.println("dvd off");
    }
    public void play(){
        System.out.println("dvd 播放");
    }
    public void pause(){
        System.out.println("dvd 暂停");
    }
}
